package com.sun.showcase.biz.testcase.service;

import java.io.InputStream;
import java.util.List;

import com.sun.showcase.client.testcase.domain.CaseLibrary;
import com.sun.showcase.client.testcase.query.CaseLibraryQuery;
import com.sun.showcase.pojo.DataGrid;
import com.sun.showcase.utils.ExecuteResult;
public interface CaseLibraryService{

	/**
	 * 获得数据表格
	 * 
	 * @param bug
	 * @return
	 */
	public DataGrid datagrid(CaseLibraryQuery caseLibraryQuery);

	/**
	 * 添加
	 * 
	 * @param caseLibraryQuery
	 */
	public CaseLibrary add(CaseLibraryQuery caseLibraryQuery);

	/**
	 * 修改
	 * 
	 * @param caseLibraryQuery
	 */
	public void update(CaseLibraryQuery caseLibraryQuery) ;
	
	/**
	 *  根据条件更新部分字段
	 * 
	 * @param caseLibraryQuery
	 */
	public void updatePart(CaseLibraryQuery caseLibraryQuery) ;

	/**
	 * 物理删除
	 * 
	 * @param ids
	 */
	public void delete(java.lang.Long[] ids);
	
	/**
	 * 逻辑删除 更新状态位
	 * 
	 * @param ids
	 */
	public void deletePt(java.lang.Long[] ids);

	/**
	 * 获得
	 * 
	 * @param CaseLibrary
	 * @return
	 */
	public CaseLibrary get(CaseLibraryQuery caseLibraryQuery);
	
	
	/**
	 * 获得
	 * 
	 * @param obid
	 * @return
	 */
	public CaseLibrary get(Long id);
	
	/**
	 * 获取所有数据
	 */
	public List<CaseLibraryQuery> listAll(CaseLibraryQuery caseLibraryQuery);
	/**
	 * 检测导入excel数据
	 */
	public ExecuteResult<List<CaseLibraryQuery>> checkImportExcelData(InputStream inputStream,String fileName);
	/**
	 * 检测导入excel数据
	 */
	public ExecuteResult<CaseLibraryQuery> importExcelData(InputStream inputStream,String fileName);
	
	public long findPage_count(CaseLibraryQuery caseLibraryQuery);
	
}
